home *** CD-ROM | disk | FTP | other *** search
/ Commodore Free 63 / Commodore_Free_Issue_63_2012-08-06_-.d64 / cp_m iv b < prev    next >
Text File  |  2023-02-26  |  9KB  |  398 lines

  1.  
  2.          Continued from Part A
  3.  
  4. ON TO MORE COMMANDS...
  5.  
  6. CP/M has a command available to set
  7. the date and time. If you plan to
  8. stamp your files with the date and
  9. time, this has to be set for it to
  10. work properly. Here is how it
  11. works...
  12.  
  13. A>date <RETURN>
  14. Thu 08/01/85 01:00:00:10
  15. A>
  16.  
  17. Entering the command DATE, CP/M
  18. looks for the DATE.COM file and if
  19. it finds it, displays the current
  20. system date and time.
  21.  
  22. A>date set <RETURN>
  23. Enter today's date (MM/DD/YY):
  24. 02/26/12
  25. ERROR: Illegal time/date
  26. specification.
  27. A>
  28.  
  29. I removed the disk from drive A and
  30. entered DATE. This is what CP/M
  31. showed...
  32.  
  33. CP/M Error On A; Disk I/O
  34. BDOS Function = 15 File = Date .COM
  35. A>
  36.  
  37. I placed the disk back into drive A,
  38. entered DATE SET, and CP/M then
  39. prompted for the date entry. This
  40. version of CP/M does not recognize
  41. the year 2012! So I entered the
  42. following:
  43.  
  44. A>date set <RETURN>
  45. Enter today's date (MM/DD/YY):
  46. 01/26/88
  47.  
  48. Then CP/M responded with:
  49.  
  50. Enter the time (HH:MM:SS):
  51.  
  52. So I entered in 13:54:00 and CP/M
  53. displayed:
  54.  
  55. Press any key to set time
  56.  
  57. After pressing a key, I was back to
  58. the system prompt...
  59.  
  60. A>
  61.  
  62. I checked to see what the new
  63. current date and time was...
  64.  
  65. date <RETURN>
  66. Fri 02/26/88 13:54:04
  67. A>
  68.  
  69. I may have crossed the path of an
  70. update somewhere, I'll just watch as
  71. I search the internet and see if I
  72. find it (add to checklist).
  73.  
  74. USER COMMAND
  75.  
  76. The USER command offers the ability
  77. to manage multiple users on one
  78. machine (disk). Today this
  79. technology is obviously outdated as
  80. most organizations use sophisticated
  81. networking technologies. However, I
  82. could see a small business still
  83. being able to use this feature
  84. (here's an idea...attempt to
  85. implement CP/M in a real work
  86. environment!).
  87.  
  88. The USER command can be coupled with
  89. the password feature to improve file
  90. access security. I entered the USER
  91. command at the prompt (I set drive B
  92. as default) and was asked for a user
  93. number. For fun, I entered 3 and the
  94. monitor displayed the following:
  95.  
  96. 3B>
  97.  
  98. I took a directory and was given a
  99. NO FILE response. This was CP/M
  100. telling me that there were zero
  101. files identified as belonging to
  102. user #3.
  103.  
  104. THE SET/INITDIR COMMANDS
  105.  
  106. The User's Guide (p. 5-86) states,
  107. "The SET command initiates password
  108. protection and time stamping of
  109. files in the CP/M 3 system. It also
  110. sets file and drive attributes, such
  111. as the Read-Only, SYS, and
  112. user-definable attributes. It lets
  113. you label a disk and password
  114. protects the label. The SET command
  115. includes options that affect the
  116. disk directory, the drive, or a file
  117. or set of files...To enable time
  118. stamping of files, you must first
  119. run INITDIR to format the disk
  120. directory".
  121.  
  122. I would like to initialize my data
  123. disk for date and time stamping -
  124. this I could use. So according to
  125. what I just read, I will need to run
  126. the INITDIR command to prepare the
  127. disk for this feature. So I inserted
  128. the data disk in drive B and entered
  129. the following:
  130.  
  131. A>initdir b: <RETURN>
  132.  
  133. CP/M then displayed the following on
  134. the monitor...
  135.  
  136. INITDIR WILL ACTIVATE TIME STAMPS
  137. FOR SPECIFIED DRIVE.
  138. Do you want to re-format the
  139. directory on drive: B (Y/N)?
  140.  
  141. I typed the letter 'Y' and pressed
  142. <RETURN>. INITDIR then processed the
  143. disk in drive B. To check to see
  144. what it has done, I took a directory
  145. of B...
  146.  
  147. dir b: [date] <RETURN>
  148.  
  149. This prompted CP/M to check the disk
  150. in drive B for files with a date
  151. stamp. Here is what was printed to
  152. the screen...
  153.  
  154. Scanning Directory...
  155. Sorting Directory...
  156. ERROR: Date and Time Stamping
  157. Inactive.
  158. A>
  159.  
  160. O.k., I forgot to use SET to
  161. activate the disk! So the next thing
  162. I did was scan the User's Guide on
  163. how to do this. I found it on page
  164. 5-92. So I entered in the following:
  165.  
  166. set b: [create=on] <RETURN>
  167.  
  168. SET then displayed the following...
  169.  
  170. Label for drive B:
  171. Directory  Passwd Stamp  Stamp  Stamp
  172. Label      Reqd   Create Access Updat
  173. ---------- ------ ------ ------ -----
  174. B:LABEL .  off    on     off    off
  175. A>
  176.  
  177. After this I entered in DIR [DATE]
  178. and the screen filled with
  179. information on each file (I had
  180. already copied several files from
  181. the system disk).
  182.  
  183. SUMMARY
  184.  
  185. I have been able to do quite a bit
  186. for this article. Finding a way to
  187. copy CP/M files from a Windows or
  188. MAC based machine is proving to be
  189. more challenging than first thought.
  190. I have been able to obtain access to
  191. a few resources that may be able to
  192. shed light on this problem. As I go
  193. deeper into more sophisticated
  194. concepts and processes, I am
  195. predicting more time investment to
  196. learn.
  197.  
  198. ED is proving to be a somewhat
  199. do-able text editor, however when I
  200. figure out how to access a CP/M disk
  201. from one of my other computers, I
  202. will be able to try some software I
  203. have downloaded that is easier to
  204. use.
  205.  
  206. DATE, SET/INITDIR, and USER commands
  207. provide convenience with proper file
  208. organizing abilities. DATE has a
  209. limitation with accepting years past
  210. 1999. USER is a command that I do
  211. not see an immediate need for since
  212. I do not have multiple users on my
  213. Commodore 128D. Commands SET and
  214. INITDIR enable greater functionality
  215. from a disk by allowing such as date
  216. and time stamping of files and
  217. password protection.
  218.  
  219. For me, all information researched
  220. up to this date is as far as I have
  221. been. CP/M and the Z-80 is not bad
  222. (I'm still preferential to the 65xx
  223. though). I see many similarities to
  224. MS-DOS (Somewhere I saw information
  225. that Microsoft stole much of CP/M
  226. for DOS, not much of a surprise).
  227.  
  228. Well, there it is...the end of the
  229. Rediscovery series! I know, it was
  230. only four articles, but to continue
  231. wouldn't exactly be "rediscovery"
  232. since I would need to write about
  233. things I haven't learned before. But
  234. don't expect this to be the end as
  235. there is a lot of stuff I plan to
  236. research. I still have that
  237. checklist with a lot of questions
  238. needing some answers and these would
  239. make for some great future articles!
  240. Here's a great idea...my next CP/M
  241. series of articles are expected to
  242. be "Commodoreman's Checklist -
  243. Exploring CP/M" or something similar.
  244.  
  245. 'Till next time, keep up the great
  246. tradition of supporting Commodore!
  247.  
  248. - Commodoreman
  249.  
  250. - - - - - - - - - - - - - - - - - - -
  251.  
  252. Hard drive (note: logical drive
  253. capacity cannot exceed 512 MB - CP/M
  254. Programmer's Guide, sec. 1.5, p.
  255. 1.11). Find out more about this
  256. feature (can I still get one?)
  257.  
  258. REU CP/M DISK
  259.  
  260. BDOS
  261.  
  262. * What is the date displayed on
  263.   startup? Is it the date of the OS
  264.   or is it there to represent the
  265.   current date? If so how do I
  266.   change it? < Part 4 >
  267.  
  268. * How do I use other peripheral
  269.   devices (modem, printer, joystick,
  270.   etc.)?
  271.  
  272. * What other high-level languages
  273.   exist (BASIC, FORTRAN, COBOL,
  274.   etc.)? < Part 4 >
  275.  
  276. * Find a manual for Personal
  277.   Ancestral File version 2
  278.  
  279. * How do I use a 1581 with CP/M?
  280.  
  281. * What does FORMAT mean with the 64
  282.   single sided format option?
  283.  
  284. * Can I read and write to a CP/M
  285.   formatted disk using my Win98
  286.   computer?
  287.  
  288. * Find a utility that can read/write
  289.   to CP/M (Win98, DOS, C128)
  290.  
  291. * Find a newer version of CP/M
  292.   System Disk
  293.  
  294. * Find a decent assembler for CP/M
  295.  
  296. * How do I transfer files to CP/M?
  297.  
  298. * What is the disk format used by
  299.   CP/M?
  300.  
  301. * How does the disk format work?
  302.   (Comparison between CP/M &
  303.   Commodore)
  304.  
  305. * Find update for CP/M to accept
  306.   years past 2000.
  307.  
  308. LIST OF RESOURCES
  309.  
  310. Hardware:
  311.  
  312. * Commodore 128D
  313. * 1541
  314. * 1571 (2)
  315. * 1581
  316. * 1750 REU
  317. * 1702 Monitor
  318. * 1902 Monitor
  319. * 1670 Modem
  320.  
  321. Software:
  322.  
  323. * CP/M System Boot Disk
  324. * Genealogy Program
  325. * other CP/M formatted disks (copies
  326.   of system disk)
  327.  
  328. Printed Material:
  329.  
  330. * Commodore 128D User's Guide
  331. * Commodore 128 Programmer's
  332.   Reference Manual
  333. * Digital Research User's Guide (3
  334.   books in one)
  335. * Commodore 128 CP/M User's Guide -
  336.   ABACUS ISBN#0916439453
  337. * Commodore World Magazine
  338. * The Z-80 Microcomputer Handbook
  339.  
  340. Digital resources:
  341.  
  342. * Commodore 128D User's Guide -
  343.   www.commodore.ca/manuals
  344.  
  345. * Commodore 128 Programmer's
  346.   Reference Manual -
  347.   www.commodore.ca/manuals
  348.  
  349. * Digital Research User's Guide -
  350.   www.commodoreman.com/commodore/book
  351.   s/man/Digital_CPM_Manual.zip
  352.  
  353. * C Hacking Magazine
  354.  
  355. * CPM Introduction - Introductory
  356.   article from Herne Data Systems
  357.   www.herne.com. File found on
  358.   Zimmer's website www.zimmers.net
  359.  
  360. * CCP Internals
  361.  
  362. Other (whatever else I have at my
  363. disposal):
  364.  
  365. * An Internet connection
  366.  
  367. * Computer with Windows98 and a 5
  368.   1/4" floppy drive (I am almost
  369.   positive I can read CP/M formatted
  370.   disks with this computer!)
  371.  
  372. * My website - www.commodoreman.com
  373.   - See Library and Archives
  374.   sections for CP/M
  375.  
  376. * AnaDisk - MS-DOS disk utility
  377.  
  378. * FreeFile - MS-DOS disk utility
  379.   http://www.herne.com/free.htm
  380.  
  381. Questions or comments can be emailed
  382. directly to Commodoreman -
  383. cman@commodoreman.com or you can
  384. contact the staff at Commodorefree.
  385.  
  386. REFERENCES FOR THIS ARTICLE
  387.  
  388. * Digital Research Inc. (1984).
  389.   User's Guide. 2nd ed.
  390.  
  391. * Digital Research Inc. (1983).
  392.   Programmer's Guide. 2nd ed.
  393.  
  394. * Digital Research Inc. (1983).
  395.   System Guide. 2nd ed.
  396.  
  397. =====================================
  398.